package com.jc.vm;

public class StackOverflowDemo {
	private int stackLength = 1;

	public void stackLeek() {
		stackLength++;
		stackLeek();
	}

	public static void main(String[] args) throws Throwable{
		StackOverflowDemo demo = new StackOverflowDemo();
		try{
			demo.stackLeek();
		}catch (Throwable e) {
			System.out.println("stack深度长度为:"+demo.stackLength);
			throw e;
		}
	}
}
